$(document).ready(function() {
  $("a.page-link").click(function(){
    loadStaticPage($(this).attr("href"))
    return false;
  });
});

function loadStaticPage(url) {
  $.getJSON(url + ".json", parsePage);
}

function parsePage(data) {
  $.colorbox({
    html: data.body, 
    open: true, 
    title: data.title,
    maxHeight: "100%",
    maxWidth: "960px"
  });
}
